package com.java.system.service;

import com.java.system.entity.*;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaoman
 * @since 2023-07-12
 */
public interface IEventService extends IService<Event> {

    void insertEvent(Event event);

    List<Event> getEvent();

    Event getEventById(Integer id);

    void updateEvent(Event event);

    void deleteEvent(Integer id);


    List<EventType> selectByTime(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<ChildEvent> selectChild(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<EventTime> selectTime(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<EventArea> selectArea(LocalDateTime startTime, LocalDateTime currentDateTime);

    List<Event> selectCount(LocalDateTime startTime, LocalDateTime currentDateTime);


    List<ChildEvent> selectAllEvent(LocalDateTime startTime, LocalDateTime currentDateTime, String type, Integer areaId);
}
